import { Admin } from "../lib/services/admin";
import { Config } from "../lib/services/config";
// eslint-disable-next-line import/named
import { Coclass } from "../lib/services/coclass";
import { Cate } from "../lib/services/cate";
import { News } from "../lib/services/news";
import { User } from "../lib/services/user";
import { Wiki } from "../lib/services/wiki";
import { Goods } from "../lib/services/goods";
// eslint-disable-next-line import/named
import { Survey } from "../lib/services/survey";
// eslint-disable-next-line import/named
import { Banner } from "../lib/services/banner";
// eslint-disable-next-line import/named
import { Cache } from "../lib/services/cache";
import { Baidu } from "../lib/services/baidu";
// eslint-disable-next-line import/named
import { Flink } from "../lib/services/flink";

export default ({ app, store, $axios }, inject) => {
  inject("adminService", new Admin({ store, $axios }));
  inject("configService", new Config({ store, $axios }));
  inject("coclassService", new Coclass({ store, $axios }));
  inject("cateService", new Cate({ store, $axios }));
  inject("newsService", new News({ store, $axios }));
  inject("userService", new User({ store, $axios }));
  inject("wikiService", new Wiki({ store, $axios }));
  inject("goodsService", new Goods({ store, $axios }));
  inject("surveyService", new Survey({ store, $axios }));
  inject("bannerService", new Banner({ store, $axios }));
  inject("cacheService", new Cache({ store, $axios }));
  inject("baiduService", new Baidu({ store, $axios }));
  inject("flinkService", new Flink({ store, $axios }));
};
